package com.foreveross.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.foreveross.vo.common.AffiliatedBaseVo;

/**
 * Tenement entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tenement_department", catalog = "hrtenement")
public class TenementDepartment implements java.io.Serializable {

	// Fields

	private String id;
	private String name;
	private String address;
	private String phone;
	private String telephone;

	// Constructors

	/** default constructor */
	public TenementDepartment() {
	}

	/** minimal constructor */
	public TenementDepartment(String id) {
		this.id = id;
	}

	public TenementDepartment(String id, String name, String address,
			String phone, String telephone) {
		this.id = id;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.telephone = telephone;
	}

	@Id
	@GenericGenerator(name="idGenerator", strategy="uuid")
	@GeneratedValue(generator="idGenerator") 
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "address")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Column(name = "phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Column(name = "telephone")
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

}